import ajax from './public'

export function companyGoodsList(params) { //公司产品列表接口
	return ajax.fetchGet('/company-goods-list', params)
}

export function addRecommendGoods(params) { //设为推荐产品
	return ajax.fetchPost('/add-recommend-goods', params)
}

export function delRecommendGoods(params) { //取消推荐产品
	return ajax.fetchPost('/del-recommend-goods', params)
}

export function editAutoReply(params) { //欢迎语编辑
	return ajax.fetchPost('/edit-auto-reply', params)
}

export function editAutoReplySwitch(params) { //欢迎语开关设置
	return ajax.fetchPost('/edit-auto-reply-switch', params)
}

export function accountBrowseReport(params) { //员工报表
	return ajax.fetchGet('/account-browse-report', params)
}

export function getReportImg(params) { //统计图表
	return ajax.fetchGet('/account-browse-report-img', params)
}

export function getCustomerList(params) { //获取成交率用户列表
	return ajax.fetchGet('/account-expect-list', params)
}

export function employeeInfo(params) { //获取员工基本信息
	return ajax.fetchGet('/employee-info', params)
}

export function editAvatar(params) { //编辑头像
	return ajax.fetchPost('/edit-avatar', params)
}

export function editemployeeInfo(params) { //编辑员工信息
	return ajax.fetchPost('/edit-employee-info', params)
}

export function areaList(params) { //获得地区列表
	return ajax.fetchGet('/area-list', params)
}

export function editSignature(params) { //编辑个性签名
	return ajax.fetchPost('/edit-signature', params)
}

export function goodsDetail(params) { //公司产品详细
	return ajax.fetchGet('/goods-detail', params)
}

export function getReport(params) { // 公司报表接口
	return ajax.fetchGet('/account-browse-report', params)
}

export function getSdk(params) {
	return ajax.fetchGet('/get-SDK-sign', params)
}

export const upLoadImg = (params) => { //图片上传
	return ajax.fetchImg('/upload-img', params)
}

export const getUserList = (params) => { //获取员工上传图片
	return ajax.fetchGet('/get-show-images', params)
}

export const editImgList = (params) => { //编辑员工上传图片
	return ajax.fetchPost('/edit-show-images', params)
}

export const isLogin = (params) => {
	return ajax.fetchGet('/isLogin', params)
}